<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no" />
  <title>放大镜</title>
  <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" href="./css/common.css" type="text/css" />
  <link rel="stylesheet" href="./css/maginfy.css" type="text/css" />
</head>

<body>
  <div class="box">
    <div class="small">
      <img src="./img/smallpic.jpg" alt="" class="small-img" />
      <div class="mark"></div>
    </div>
    <div class="big">
      <img src="./img/bigpic.jpg" alt="" class="big-img" />
    </div>
  </div>
  <script src="./js/magnify.js"></script>
  <script>
    let magnify = new Magnify('.small', '.mark', '.big-img')
  </script>
</body>

</html>